
package com.nanyang.tms.api.dto.request.companypickaddress;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <p>Description:企业提货地址请求参数</p>
 * 
 * @author
 * @date 2020年11月11日 上午10:02:18
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Data
public class CompanyPickAddressAddRequest extends ApiRequest {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;


	@JsonIgnore
	private String pin;

	/**
	 * 企业编码
	 */
	@JsonIgnore
	private String companyCode;

	/**
	 * 省
	 */
	@NotEmpty(message = "省不能为空")
	@Length(max = 30, message = "province长度需小于30个字符")
	private String province;
	/**
	 * 省
	 */
	@NotEmpty(message = "省不能为空")
	@Length(max = 30, message = "provinceCode长度需小于30个字符")
	private String provinceCode;
	/**
	 * 市
	 */
	@NotEmpty(message = "市不能为空")
	@Length(max = 30, message = "city长度需小于30个字符")
	private String city;

	/**
	 * 区
	 */
	@NotEmpty(message = "区不能为空")
	@Length(max = 30, message = "district长度需小于30个字符")
	private String district;

	/**
	 * 详细地址
	 */
	@NotEmpty(message = "详细地址不能为空")
	@Length(max = 100, message = "address长度需小于100个字符")
	private String address;

	/**
	 * 联系人
	 */
	@NotEmpty(message = "联系人不能为空")
	@Length(max = 10, message = "contact长度需小于10个字符")
	private String contact;

	/**
	 * 联系电话
	 */
	@NotEmpty(message = "联系电话不能为空")
	@Length(max = 20, message = "tel长度需小于20个字符")
	private String tel;

	/**
	 * 邮编
	 */
	@Length(max = 10, message = "zipCode长度需小于10个字符")
	private String zipCode;


	@Override
	public void requestCheck() {

	}

}
